package com.niiwoo.civet.user.dao.mapper;

import com.niiwoo.civet.user.dao.entity.UserAreaDictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserAreaDictionaryMapperExt extends UserAreaDictionaryMapper {
    /**
     * 根据区域名称查询区域code 模糊匹配  areaName%
     *
     * @param areaName
     * @return
     */
    String selectAreaCodeByAreaName(@Param("areaName") String areaName);

    List<Map<String, String>> selectAreaCodeAndParentCodeByAreaName(@Param("areaName") String areaName);

    /**
     * 获取开放城市
     * @param areaCode
     * @return
     */
    List<UserAreaDictionary> selectFastBorrowAccreditCity(@Param("list") List<String> areaCode);

}